package com.guoqiang.struct;

public class ForDemo05 {
    public static void main(String[] args) {
        int[] number = {10, 20, 30, 40, 50};
        for (int i = 0; i < 5; i++) {
            System.out.println(number[i]);
        }

        System.out.println("-------------------");

        //增强for循环：把number数组中的数据赋给x
        for (int x : number) {
            System.out.println(x);
        }
    }
}
